package pt.nmfa.peste.session;

import pt.nmfa.peste.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("feedMoviesHome")
public class FeedMoviesHome extends EntityHome<FeedMovies> {

	public void setFeedMoviesMovieName(String id) {
		setId(id);
	}

	public String getFeedMoviesMovieName() {
		return (String) getId();
	}

	@Override
	protected FeedMovies createInstance() {
		FeedMovies feedMovies = new FeedMovies();
		return feedMovies;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public FeedMovies getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
